package com.healthcloud.service.RegionalDisease.impl;

import com.healthcloud.dao.RegionalDisease.BaseLargeareaDao;
import com.healthcloud.entity.RegionalDisease.BaseLargeareaEntity;
import com.healthcloud.service.RegionalDisease.BaseLargeareaService;
import com.healthcloud.utils.PageParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service("baseLargeareaService")
@Transactional
public class BaseLargeareaServiceImpl implements BaseLargeareaService {
	@Autowired
	private BaseLargeareaDao baseLargeareaDao;
	
	@Override
	public BaseLargeareaEntity queryObject(String largeAreaCode){
		return baseLargeareaDao.queryObject(largeAreaCode);
	}
	
	@Override
	public List<BaseLargeareaEntity> queryList(BaseLargeareaEntity bean, PageParam pageParam){
		return baseLargeareaDao.queryList(bean, pageParam);
	}
	
	@Override
	public int queryTotal(BaseLargeareaEntity bean){
		return baseLargeareaDao.queryTotal(bean);
	}
	
	@Override
	public void save(BaseLargeareaEntity baseLargearea){
		baseLargeareaDao.save(baseLargearea);
	}
	
	@Override
	public void update(BaseLargeareaEntity baseLargearea){
		baseLargeareaDao.update(baseLargearea);
	}
	
	@Override
	public void delete(String largeAreaCode){
		baseLargeareaDao.delete(largeAreaCode);
	}
	
	@Override
	public void deleteBatch(String[] largeAreaCodes){
		baseLargeareaDao.deleteBatch(largeAreaCodes);
	}
	
}
